package com.ruoyi.bbsAdmin.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生_学校关系对象 user_school
 * 
 * @author ruoyi
 * @date 2022-03-21
 */
@TableName(value = "bbs_user_school")
public class UserSchool implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    private String id;

    /** 用户 */
    @Excel(name = "用户")
    private String userid;

    /** 学校id */
    @Excel(name = "学校id")
    private Long schoolid;

    /** 邀请人 */
    @Excel(name = "邀请人")
    private String inviter;

    /** 学号 */
    @Excel(name = "学号")
    private String stunum;

    /** 身份证明 */
    @Excel(name = "身份证明")
    private String idcardurl;

    /** 用户类型。0：普通用户；1：预警用户；2：禁言用户；3：管理员；4：预警管理员； */
    @Excel(name = "用户类型。0：普通用户；1：预警用户；2：禁言用户；3：管理员；4：预警管理员；")
    private Integer usertype;

    /** 记录审核状态，0：访客；1：审核中；2：审核通过； */
    @Excel(name = "记录审核状态，0：访客；1：审核中；2：审核通过；")
    private Integer userstate;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatetime;

    public Date getCreatetime()
    {
        return createtime;
    }

    public void setCreatetime(Date createtime)
    {
        this.createtime = createtime;
    }
    public Date getUpdatetime()
    {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime)
    {
        this.updatetime = updatetime;
    }

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setSchoolid(Long schoolid) 
    {
        this.schoolid = schoolid;
    }

    public Long getSchoolid() 
    {
        return schoolid;
    }

    public void setInviter(String inviter)
    {
        this.inviter = inviter;
    }
    public String getInviter()
    {
        return inviter;
    }

    public void setStunum(String stunum)
    {
        this.stunum = stunum;
    }
    public String getStunum()
    {
        return stunum;
    }

    public void setIdcardurl(String idcardurl)
    {
        this.idcardurl = idcardurl;
    }
    public String getIdcardurl()
    {
        return idcardurl;
    }

    public void setUsertype(Integer usertype)
    {
        this.usertype = usertype;
    }

    public Integer getUsertype()
    {
        return usertype;
    }
    public void setUserstate(Integer userstate)
    {
        this.userstate = userstate;
    }

    public Integer getUserstate()
    {
        return userstate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("schoolid", getSchoolid())
            .append("usertype", getUsertype())
            .append("userstate", getUserstate())
            .append("createtime", getCreatetime())
            .append("updatetime", getUpdatetime())
            .toString();
    }
}
